home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 22 code / Paper Juggling / Shell Files / DialogUtils.h < prev    next >
Encoding:
Text File  |  1995-03-01  |  880 b   |  26 lines  |  [TEXT/MMCC]

  1. // Prototypes for the Dialog utils
  2. void            InitDialogUPPs(void);
  3. pascal Boolean     StdKeyFilter(DialogPtr dptr, EventRecord *event, short *item);
  4. pascal Boolean     NumFilter(DialogPtr dptr, EventRecord *myDialogEvent, short *item);
  5. void             IBeamIt(WindowPtr dwind);
  6. void             ShortToDlog(short val, DialogPtr dptr, short item);
  7. short             DlogToShort(DialogPtr dptr, short itmnum);
  8. pascal void     BtnItem(DialogPtr dptr, short item);
  9. ControlHandle    SnatchHandle(DialogPtr thebox, short theGetItem);
  10. Boolean            InRange(DialogPtr thebox, short theItem, short min, short max);
  11.  
  12. // Standard Items
  13. #define iOKButton         1
  14. #define iCancelButton     2
  15. #define iOKOutline        3
  16.  
  17. // Key constants
  18. #define kReturnKey         0x0D
  19. #define kEnterKey         0x03
  20. #define kEscKey         0x1B
  21. #define kLastCntrlKey     0x1F
  22. #define kDeleteKey         0x7F
  23. #define kTabKey         0x09
  24.  
  25. // The out of range alert in the app
  26. #define kRangeAlert        134